package com.xlfc.serialization.serializtion;

import com.xlfc.common.annotion.SPI;

import java.io.IOException;


@SPI("kryo")
public interface Serializer {

    byte[] serialize(Object obj) throws IOException;

    <T> T deserialize(byte[] bytes,Class<T> clazz) throws IOException;
}
